import { globalMethods } from '@/utils/golbal'
import type { App } from 'vue'

export default {
    install(app: App) {
        Object.keys(globalMethods).forEach((k: string) => {
            app.config.globalProperties['$' + k] = (
                globalMethods as {
                    [key: string]: (value: any) => void | any
                }
            )[k]
        })
    },
}
